package java0107;

import java.util.HashMap;
import java.util.Map;

public class Java05 {
    public static void main(String[] args) {

//（5）Map
        Map<Integer,String> map=new HashMap<Integer,String>();

        map.put(1,"张三");
        map.put(2,"李四");
        map.put(3,"王五");

        //遍历
        map.forEach((k,v)->{
            System.out.println(k + "\t" + v);
        });
    }
}
